
<style>
.affix{top:10px;}
.head-style-list li,.editor-template-list li{cursor: pointer;}
</style>
		
{{$this->Form->create('WxActivity',array('class'=>'form-horizontal','role'=>'form'))}}
		
	<div class="tab-content">
		
			
		<div role="tabpanel" class="tab-pane active" id="chi-info">
			
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityName">活动名称</label>
				<div class="col-sm-9 controls">
					{{$this->Form->hidden('id')}}
					{{$this->Form->hidden('model',array(value=>'Qa'))}}
					{{$this->Form->hidden('status',array('default'=>1))}}	
					{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontCoverImg">封面图片</label>
				<div class="col-sm-9 controls select">
					{{$this->Swfupload->load('coverimg',array(
					'label'=>false,'modelClass'=>'WxActivity',
					'no_db'=>1,'upload_limit'=>1,
					'file_types'=> '*.jpg;*.gif;*.png;*.bmp',
					'isadmin'=>false
					))}}
				</div>
			</div>			
			<!--
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">是否有效</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('status',array('class'=>'form-control','default'=>1,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">开放提交数据</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('allow_add',array('class'=>'form-control','default'=>0,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">提交后允许修改</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('allow_edit',array('class'=>'form-control','default'=>0,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontPriority">开始时间</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('started',array('class'=>'form-control','type'=>'datetime','dateFormat'=>'YMD','timeFormat'=>24,
					'monthNames'=> array(
						1=>'1月',2=>'2月',3=>'3月',4=>'4月',5=>'5月',6=>'6月',
						7=>'7月',8=>'8月',9=>'9月',10=>'10月',11=>'11月',12=>'12月',
					),
					'div'=>false,'label'=>false,))}}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontPriority">结束时间</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('ended',array('class'=>'form-control','type'=>'datetime','dateFormat'=>'YMD','timeFormat'=>24,
					'monthNames'=> array(
						1=>'1月',2=>'2月',3=>'3月',4=>'4月',5=>'5月',6=>'6月',
						7=>'7月',8=>'8月',9=>'9月',10=>'10月',11=>'11月',12=>'12月',
					),
					'div'=>false,'label'=>false,))}}
				</div>
			</div>
			 -->
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivitySummary">活动摘要</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('summary',array('class'=>'form-control','rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>
			
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}

